<div class='top'>
	<h1>Nueva Regla</h1>
	<%= display_menu %>
</div>
<div class='body'>
<div class='center'>
	
<% form_tag :action => 'add_regla' do %>
	
<table cellspacing='30'>
<tr>
	<td>
<table>
			<tr><th span='2'>Días</th></tr>
			<% i = 0
				for day in @Dias do i = i + 1%>
  					<tr>
							<td><%= day %></td>
							<td><%= check_box 'checkbox', day, {}, i , 0 %></td>
						</tr>
			<% end %>
</table>
	</td>
	<td>
<table>
	<tr><th>De:</th><th>A:</th></tr>
	<tr>
		<td>
		<%= select_hour Time.now, :field_name => 'from_hour' %>
		<%= select_minute Time.now, :minute_step => 30, :field_name => 'from_minutes'%> -
		</td>
		<td>
		<%= select_hour Time.now, :field_name => 'to_hour' %>
		<%= select_minute Time.now, :minute_step => 30, :field_name => 'to_minutes' %>
		</td>
	</tr>
</table>
	</td>
</tr>
</table>

<div align='center'><%= submit_tag "Agregar" %></div>
<% end %>

</div>
</div>
